home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / Technical.Notes / IIGS / TN.IIGS.067 < prev    next >
Encoding:
Text File  |  1989-11-09  |  6.6 KB  |  131 lines  |  [TEXT/pdos]

  1. Apple II
  2. Technical Notes
  3. _____________________________________________________________________________
  4.                                                   Developer Technical Support
  5.  
  6.  
  7. Apple IIGS
  8. #67:    LaserWriter Font Mapping
  9.  
  10. Revised by:    Jim Luther                                       November 1989
  11. Written by:    Suki Lee & Jim Luther                           September 1989
  12.  
  13. This Technical Note discusses the methods used by the Apple IIGS Print Manager 
  14. to map IIGS fonts to the PostScript(R) fonts available with an Apple LaserWriter 
  15. printer.
  16. Changes since September 1989:  Moved the registered trademark symbols 
  17. from Table 2 to the list of trademarks at the end of this Note to avoid 
  18. confusion about font name spelling.
  19. _____________________________________________________________________________
  20.  
  21. Version 2.2 and earlier of the Apple IIGS LaserWriter driver depend solely 
  22. upon font family numbers as unique font identifiers.  There is a table built 
  23. into the driver which maps the known font family numbers to the built-in 
  24. LaserWriter family fonts.  Any fonts which are not built-in are created in the 
  25. printer from its bitmap font strike.  Under this implementation, all font 
  26. family numbers not known at the time the driver was written print using bitmap 
  27. fonts.  This driver knows nothing of any other fonts which may reside in the 
  28. printer.
  29.  
  30. There have been many requests for the driver to take advantage of other 
  31. available PostScript fonts to get high quality output from the LaserWriter.  
  32. PostScript fonts from Adobe's font library, or from other PostScript font 
  33. manufacturers, can be downloaded to the printer from a Macintosh and remain in 
  34. the printer for use until power off.  Currently there is no means to download 
  35. a PostScript font with an Apple IIGS.
  36.  
  37. The Apple IIGS LaserWriter driver version 3.0 makes use of most resident 
  38. PostScript fonts in the LaserWriter when requested.  If the font is not 
  39. available, then the bitmap font is used.  The driver queries the printer at 
  40. the start of a job for the font directory listing.  The listing consists of 
  41. names of all the fonts in the printer, built-in or downloaded.  This 
  42. information is kept locally for look up using the name of the requested font.
  43.  
  44.  
  45. Issues
  46.  
  47. All Apple IIGS fonts contain a family name and a family number.  The Apple 
  48. IIGS currently identifies fonts using the family number; however, this 
  49. identification method may change in the future, due to the complexity of 
  50. tracking unique matches between font family names and font family numbers.
  51.  
  52. PostScript identifies its fonts by name (case sensitive) and knows nothing of 
  53. any font family numbering system, Macintosh or Apple IIGS, which might be 
  54. attached to a particular font.  Most PostScript font families include plain, 
  55. bold, italic and bold italic fonts.  Some fonts families may also have serif 
  56. and sans serif fonts or fonts of different weights (line thickness).  These 
  57. fonts are generally named by adding a style suffix to the base family name.  
  58. Unfortunately, there is no uniform method for naming fonts, since most fonts 
  59. were named by their designers and many of the names have historical 
  60. significance.
  61.  
  62. The three examples shown in Table 1 show three variations of the plain font, 
  63. two variations of the bold style, three variations of the italic style, and 
  64. three variations of the bold italic style.  There are others such as 
  65. ZapfChancery-MediumItalic, Korinna-KursivRegular, and LetterGothic-Slanted 
  66. which all denote the italic style of the respective font family.
  67.  
  68. Style         Font names
  69. _____________________________________________________________________________
  70. plain         Helvetica              Times-Roman       AvantGarde-Book
  71. bold          Helvetica-Bold         Times-Bold        AvantGarde-Demi
  72. italic        Helvetica-Oblique      Times-Italic      AvantGarde-BookOblique
  73. bold italic   Helvetica-BoldOblique  Times-BoldItalic  AvantGarde-DemiOblique
  74. _____________________________________________________________________________
  75.  
  76.                         Table 1-Example Font Names
  77.  
  78. The Macintosh LaserWriter driver uses a mapping scheme to compose a full 
  79. PostScript font name.  It relies on the Font Family Definition Record 'FOND' 
  80. resource to provide a style mapping table containing the appropriate suffixes.
  81.  
  82. Since there are no similar resource on the Apple IIGS, the Apple IIGS 
  83. LaserWriter driver adopts the following approach.  The driver has full 
  84. knowledge of all LaserWriter family built-in fonts (see Table 2 for a list of 
  85. these built-in fonts) and uses the correct name for all style variations of 
  86. the fonts.  For all other fonts, the driver uses a standard set of suffixes 
  87. for the style modifications.  These suffixes are -Bold, -Italics, and -
  88. BoldItalics.  The appropriate suffix is appended to the family name of the 
  89. font, and this name is used to search the font directory table obtained from 
  90. querying the printer.  If a match is found, the document is printed using the 
  91. corresponding PostScript font.  If no match is found, then the driver tries to 
  92. find the plain form of the font and creates the style modification in 
  93. PostScript.  A bitmap of the font is downloaded to the printer if these two 
  94. searches fail.
  95.  
  96. If you are shipping your application with the intention of taking advantage of 
  97. PostScript fonts when printing to a LaserWriter, please be sure to provide an 
  98. Apple IIGS font whose family name is identical to the PostScript font family 
  99. name.
  100.  
  101.                     LaserWriter     LaserWriter Plus and 
  102.                                     LaserWriter II
  103.                     ____________________________________
  104.                     Courier         AvantGarde
  105.                     Helvetica       Bookman
  106.                     Symbol          Courier
  107.                     Times           Helvetica
  108.                                     Helvetica-Narrow
  109.                                     NewCenturySchlbk
  110.                                     Palatino
  111.                                     Symbol
  112.                                     Times
  113.                                     ZapfChancery
  114.                                     ZapfDingbats
  115.                     ____________________________________
  116.  
  117.                      Table 2-Built-in LaserWriter Fonts
  118.  
  119.  
  120. Further Reference
  121. _____________________________________________________________________________
  122.     o    Apple IIGS Toolbox Reference, Volumes 1 & 2
  123.     o    Apple LaserWriter Reference
  124.  
  125. PostScript is a registered trademark of Adobe Systems Incorporated.
  126. Helvetica(R), Palatino(R), and Times(R) are registered trademarks of 
  127. Linotype Co.
  128. ITC Avant Garde(R), ITC Bookman(R), ITC Zapf Chancery(R), and 
  129. ITC Zapf Dingbats(R) are registered trademarks of 
  130. International Typeface Corporation.
  131.